package com.leadingsoft.pwxk.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.leadingsoft.pwxk.dto.AnnouncementDto;
import com.leadingsoft.pwxk.dto.SearchDto;
import com.leadingsoft.pwxk.model.Announcement;

public interface AnnouncementService {

	Announcement save(AnnouncementDto ann);

	Announcement update(AnnouncementDto ann);

	void delete(Long id);

	Announcement get(Long id);

	Page<Announcement> getList(SearchDto s, Pageable pageable);

	List<Announcement> getTop7();
}
